package com.jfirer.validator.constraint.validator;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import javax.validation.constraints.Null;

public class NullValidator implements ConstraintValidator<Null, Object>
{
    
    @Override
    public void initialize(Null constraintAnnotation)
    {
    }
    
    @Override
    public boolean isValid(Object value, ConstraintValidatorContext context)
    {
        return value == null;
    }
    
}
